package com.luoran.bartalks.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luoran.bartalks.dao.IBtPlanBizPicDao;
import com.luoran.bartalks.entity.biz.BtPlanBiz;
import com.luoran.bartalks.entity.biz.BtPlanBizPic;
import com.luoran.bartalks.service.IBtPlanBizPicService;

@Service
public class BtPlanBizPicService implements IBtPlanBizPicService {

    @Autowired
    private IBtPlanBizPicDao planBizPicDao;

	@Override
	public List<String> getPics(String bizId) {
		return planBizPicDao.getPics(bizId);
	}

	@Override
	public void addPlanBizPic(BtPlanBizPic planBizPic) {
		 planBizPicDao.insertTemplate(planBizPic);
	}

	@Override
	public List<BtPlanBiz> getPlanBiz(String packingListMaterieId) {
		return planBizPicDao.getPlanBiz(packingListMaterieId);
	}

	@Override
	public int getPicNum(String bizId) {
		return planBizPicDao.getPicNum(bizId);
	}

}
